import registerService from '../service/register.service.js'

class RegisterController {
    /**
     * @param {import("koa").ParameterizedContext} ctx
     */
    async register(ctx) {
        const { nickname, username, password, uuid, captcha } = ctx.request.body
        ctx.body = await registerService.register(nickname, username, password, uuid, captcha)
    }
}

export default new RegisterController()
